package com.fintech.third.dao.intbank;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fintech.third.model.intbank.IntBankBasic;

public interface IntBankBasicMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IntBankBasic record);

    int insertSelective(IntBankBasic record);

    IntBankBasic selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IntBankBasic record);

    int updateByPrimaryKey(IntBankBasic record);
    
    
    List<IntBankBasic>  intBankBasic(@Param("serialNum") String serialNum);
    
    
    /**
	 * 通过查询流水号获取
	 * 
	 * @param serialNum
	 * @return
	 */
	IntBankBasic getIntBankBasicByNum(@Param("serialNum") String serialNum);
	
	/**
	 * 通过loanId获取查询流水号获取
	 * 
	 * @param loanId
	 * @return
	 */
	String getLastRecord(@Param("loanId") String loanId);
	
	
	/**
	 * 通过loanId查询基本信息
	 * @param loanId
	 * @return
	 */
	List<IntBankBasic> intBankBasicByLoanId(@Param("loanId") String loanId);
}